{% extends 'plate.html' %}
{% block plate %}
{{ block.super }}

{% for plate in plate.plates_summed %}
<div class="accordian">
	<h1>Rlated plates {{ plate.platename }} replicate: {{ plate.replicate }} condition: {{ plate.condition }} </h1>

	<div>
		<h2>Plate detail</h2>
		<a href="/p/{{ plate.id }}">{{ plate.platename }}</a>
		<h2>cell line:</h2>
		<p>{{ plate.cellline }}</p>
		<h2>Condition:</h2>
		<p>{{ plate.condition }}</p>
		<h2>Plate concentration:</h2>
		<p>{{ plate.concentration }}</p>
		<h2>Data matrix:</h2>
		{{plate.data.table|safe}}
	</div>

	<h2>Plate heatmap </h2>
	<div id="related_plot{{plate.id}}">
	<script>
	var json = {{plate.data.json|safe}}
	</script>
	<script>
	draw_heatmap(json, anno, ctrls,"div#related_plot{{plate.id}}", {}, "{{screentype}}");
	</script></div>

</div>

{% endfor %}
{% endblock %}
